﻿using AutoMapper;
using Wz.Dto;
using Wz.Entities;

namespace Wz
{
    public class WzApplicationAutoMapperProfile : Profile
    {
        public WzApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */
            //物资采购
            CreateMap<PurchaseMaterials, Purchase_MaterialsDto>();
            CreateMap<AddMaterial_PurchasingDto, PurchaseMaterials>();
            //物资入库
            CreateMap<Warehousing, WarehousingDto>();
            CreateMap<AddWarehousingDto, Warehousing>();
            //物资申领
            CreateMap<ProApply, ProApplyDto>();
            //应收费
            CreateMap<ChargeTable, ChargeTableDto>();
            //应付费
            CreateMap<Feespayable, FeespayableDto>();
        }
    }
}
